<?php
include $this->Render('header.php');
?>
<link rel="stylesheet" type="text/css" href="<?php echo BASE_STYLE;?>/css/admin.css" />
<script type="text/javascript" src="<?php echo BASE_STYLE;?>/js/common.js"></script>

<div class="tongrong-box" style="width:785px;" >
	<form class="login-box-form J-ajaxForm" action="/branch/operate/option/bankaccountsave/" method="post" autocomplete="off">
	<div class="tongrong-box-main">
    	<table width="100%" cellpadding="0" cellspacing="0" border="0">
    	    <tr>
            	<td width="90px" height="30">&nbsp;&nbsp;&nbsp;网点名：</td>
                <td>
                <input type="text" name="branch_name" style="width:280px;background:#DDDDDD;" value="<?php echo $this->branch_info['br_name'];?>" readonly />
                </td>
            </tr>
        	<tr>
            	<td width="90px" height="30">收款单位：</td>
                <td>
                <input type="text" name="br_payee" style="width:280px;" value="<?php echo $this->branch_info['br_payee']; ?>" />
                </td>
            </tr>
            <tr>
                <td width="90px" height="30">通知手机号：</td>
                <td>
                <input type="text" name="br_mobile" style="width:280px;" value="<?php echo $this->branch_info['br_mobile']; ?>" />
                </td>
            </tr>
            <tr>
                <td width="90px" height="30">总行名称：</td>
                <td>
                <input type="text" name="br_bank_name" style="width:280px;" value="<?php echo $this->branch_info['br_bank_name'];?>"/>
                </td>
            </tr>
            <tr>
                <td width="90px" height="30">银行所在城市：</td>
                <td>
                <input type="text" name="br_bank_city" style="width:280px;" value="<?php echo $this->branch_info['br_bank_city'];?>"/>
                </td>
            </tr>
            <tr>
            	<td width="90px" height="30">开户银行：</td>
                <td>
                <input type="text" name="br_acc_bank" style="width:280px;" value="<?php echo $this->branch_info['br_acc_bank'];?>"/>
                </td>
            </tr>
            <tr>
                <td width="90px" height="30">开户账号：</td>
                <td>
                <input type="text" name="br_acc_no" style="width:280px;" value="<?php echo $this->branch_info['br_acc_no'];?>"/>
                </td>
            </tr>
        </table>
    </div>
    <div class=" mt50">
        <input type="hidden" name="br_id" value="<?php echo $this->branch_info['br_id'];?>" />
    	<input class="btn-submit-blue fn-left mr15 J-acc-submit" type="submit" value="提交" />
        <a class="a-btn-close J-a-btn-close" href="javascript:;">关闭</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </div>
	</form>
</div>

<script>
	//关闭弹出
	$(".J-a-btn-close").on('click',function(){
		var winElement = parent.Ext.fly(window.frameElement).up('div.x-window');
		parent.Ext.getCmp(winElement.id).close();
		
	});
	
	$(document).ready(function(e) {
		//全选
        $(".J-acc-submit").on('click',function(){
            $(this).dyhlForm({
                beforefunction:function(){
                    $(".J-acc-submit").prop('disabled',true);
                },
                nofunction:function(){
                    $(".J-acc-submit").prop('disabled',false);
                },
                sucessfunction:function(data){
                    $(".J-acc-submit").prop('disabled',false);
                    if(data['success']){
                        Ext.Msg.alert('提示','提交成功',function(){
                            window.parent.location.reload();
                            var winElement = parent.Ext.fly(window.frameElement).up('div.x-window');
                            parent.Ext.getCmp(winElement.id).close();
                        });
                        
                    }else{
                        Ext.Msg.alert('提示',data['msg']);
                    }
                }   
            }); 
        });
			

    });
	function submitChk(){
        $(".J-submit").prop('disabled',true);     
    }
</script>

<?php include $this->Render('footer.php'); ?>